﻿// ===============================================================================
// IFilter.cs
// EOS Web Framework
// ===============================================================================
// Copyright (c) EOS Development Group. All rights reserved.
// ===============================================================================

namespace EOS.Framework.Web.Mvc
{
    /// <summary>
    /// A filter is a piece of code, which is called, whenever the 
    /// MVC framework handles the request. Instead of a HttpModule, you have full 
    /// access to the MVC context values.
    /// </summary>
    public interface IFilter
    {
        /// <summary>
        /// Executes the filter.
        /// </summary>
        /// <param name="pageContext">The page context, containing all relevant values
        /// for the current page.</param>
        void Execute(PageContext pageContext);
    }
}
